Plotting tips

Observational data (for later used)

Use the cdas package to obtain data.

plot parameters

You need to define these different from the cell which called matplotlib.pyplot

Ticks for both sides

Heat map with log-scaled bins

It is better to use 'pcolormesh' rather than 'imshow'

Shaded region over several panels

Vertical line over several panels

Crossed axes and equal aspect

Log scale color map

Colorbar scale of date

X label time format

Different size panels

Mixed cartesian and Polar plots

Scatter points over a line

Subplots including a heatmap and a line plot.

Also setting gridspec_kw and width_ratios, you can adjust the size of figures.

Multiple axes

Animation of heatmaps

Hatched region

Figure in a figure

Connect paths among panels

Contour plot and colorbar controll

Multicolored lines

Actually, there is no easy to plot it. Alternatively, you can use scatter (but points). If you really need multicolored lines, you can check here; [https://matplotlib.org/3.3.3/gallery/lines_bars_and_markers/multicolored_line.html]

Several lines with a colorbar

Axis setting